|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.iperg.part.core.IpEvent org.iperg.part.core.IpProcessEvent
public class IpProcessEvent
The IpProcessEvent
class describes events that concern
remote processes, for instances the establishment of a new
connection between the local and some remote process.
Field Summary | |
---|---|
static java.lang.String |
CONNECT_RETRY_FAILED
Process event sub-type that indicates that a connection that was attempted from the local process failed. |
static java.lang.String |
CONNECTION_ESTABLISHED
Process event sub-type that indicates that a connection has been set up between the local and a remote process. |
static java.lang.String |
CONNECTION_TERMINATED
Process event sub-type that indicates that a connection to a remote process has been terminated The reason may be for instance that the connection was closed by one of the processes, or broken due to some network error. |
static java.lang.String |
PROCESS_ALIVE
Process event sub-type that indicates that a certain remote process seems to be alive. |
static java.lang.String |
PROCESS_EXIT
Process event sub-type that indicates that a certain remote process has exited. |
static java.lang.String |
PROCESS_SILENT
Process event sub-type that indicates that the local process has not received any data from the remote process in a while. |
Method Summary | |
---|---|
java.lang.Exception |
getException()
If event type is CONNECTION_FAILED , returns the
local exception that caused the call to connect to
fail. |
IpIdentifier |
getProcessId()
Get the identifier of the remote process that the event concerns. |
IpUrl |
getUrl()
Get the connection url |
Methods inherited from class org.iperg.part.core.IpEvent |
---|
getDestination, getType, read, setDestination, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CONNECTION_ESTABLISHED
public static final java.lang.String CONNECTION_TERMINATED
public static final java.lang.String CONNECT_RETRY_FAILED
public static final java.lang.String PROCESS_SILENT
public static final java.lang.String PROCESS_ALIVE
PROCESS_SILENT
event was previously posted
concerning the corresponding process.
public static final java.lang.String PROCESS_EXIT
Method Detail |
---|
public IpIdentifier getProcessId()
If the event sub-type is CONNECTION_ESTABLISHED
,
the identifier identifies the process to which the local
process is now connected.
If the event sub-type is CONNECTION_FAILED
,
the identifier will be null
.
If the event sub-type is
CONNECTION_TERMINATED
, the identifier identifies
the process at the other end of the terminated connection.
If the event sub-type is PROCESS_SILENCE
, the
identifier identifies the process which seems to be silent.
If the event sub-type is PROCESS_ALIVE
, the
identifier identifies the process which seems to be alive.
If the event sub-type is PROCESS_EXIT
, the
identifier identifies the process that is no longer running.
public IpUrl getUrl()
public java.lang.Exception getException()
CONNECTION_FAILED
, returns the
local exception that caused the call to connect
to
fail.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |