|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.interfaceware.iguana.plugin.DisconnectReason
public class DisconnectReason
This class is used to describe the reason for a plugin's disconnection from Iguana.
The DisconnectReason
for a plugin's most recent
disconnection from Iguana may be retrieved from the DisconnectReason
or DisconnectReason
properties, depending on the
type of the plugin.
The disconnect reason includes three mutually exclusive flags indicating the
reason for the disconnection: DueToIguana
, DueToPlugin
, and DueToError
. These flags can be used
programmatically to customize plugin disconnection handling depending on the
cause of the disconnection.
The disconnect reason includes a textual description of the reason for
disconnection: Description
. The textual
description may contain additional details useful in diagnosing unexpected
disconnections, especially in the case of disconnection due to errors.
Constructor Summary | |
---|---|
DisconnectReason()
|
|
DisconnectReason(long Handle)
|
Method Summary | |
---|---|
protected void |
finalize()
|
java.lang.String |
getDescription()
Provides a textual description of the reason for disconnection. |
boolean |
getDueToError()
Indicates that the connection between Iguana and the plugin was closed due to an error. |
boolean |
getDueToIguana()
Indicates that Iguana closed the connection with the plugin. |
boolean |
getDueToPlugin()
Indicates that the plugin requested disconnection from Iguana. |
void |
release()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DisconnectReason() throws PluginException
PluginException
public DisconnectReason(long Handle) throws PluginException
PluginException
Method Detail |
---|
public void release() throws PluginException
PluginException
protected void finalize() throws PluginException
finalize
in class java.lang.Object
PluginException
public boolean getDueToIguana() throws PluginException
Indicates that Iguana closed the connection with the plugin.
Iguana closes its connection with a plugin when stopping the plugin channel.
PluginException
public boolean getDueToPlugin() throws PluginException
Indicates that the plugin requested disconnection from Iguana.
Plugins may request disconnection by invoking the disconnect
or disconnect
methods, depending on
the type of plugin.
PluginException
public boolean getDueToError() throws PluginException
Indicates that the connection between Iguana and the plugin was closed due to an error.
A textual description of the error is available via the Description
property.
PluginException
public java.lang.String getDescription() throws PluginException
Provides a textual description of the reason for disconnection.
PluginException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |