|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectscs.core.Receptacle
public class Receptacle
This class holds all the metadata pertinent to a receptacle, and represents it locally. It doesn't maintain a ReceptacleDescription directly because the ReceptacleDescription is an automatically generated class. The generated code sets all of its fields as public but these fields should not be manipulated freely.
Method Summary | |
---|---|
int |
addConnection(Object obj)
Connects a remote facet to this receptacle. |
void |
clearConnections()
Removes all connections. |
boolean |
equals(Object obj)
|
List<ConnectionDescription> |
getConnections()
Provides a list with metadata about all active connections to this receptacle. |
int |
getConnectionsSize()
Provides the current number of connections. |
ReceptacleDescription |
getDescription()
Provides the IDL structure ReceptacleDescription of this receptacle. |
String |
getInterfaceName()
Provides the interface that this receptacle expects. |
String |
getName()
Provides the name of this receptacle. |
int |
hashCode()
|
boolean |
isMultiplex()
Indicates whether this receptacle accepts more than one connection. |
boolean |
removeConnection(int id)
Disconnects a remote facet from this receptacle. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String getName()
public String getInterfaceName()
public boolean isMultiplex()
public ReceptacleDescription getDescription()
public List<ConnectionDescription> getConnections()
public int getConnectionsSize()
public void clearConnections()
public int addConnection(Object obj) throws AlreadyConnected, ExceededConnectionLimit, InvalidConnection
obj
- The remote facet reference.
InvalidConnection
- If the facet object does not implement this
receptacle's specified interface.
AlreadyConnected
- If this receptacle supports only one connection
and is already connected.
ExceededConnectionLimit
- If the receptacle is multiplex and the
maximum number of connections was already reached.public boolean removeConnection(int id)
id
- The connection identifier.
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |