public abstract class Method extends java.lang.Object implements RSBObject
Modifier and Type | Class and Description |
---|---|
protected class |
Method.MethodState |
protected class |
Method.MethodStateActive |
protected class |
Method.MethodStateInactive |
Modifier and Type | Field and Description |
---|---|
protected Factory |
factory |
protected Informer<?> |
informer |
protected Listener |
listener |
protected static java.util.logging.Logger |
LOG |
protected Scope |
REPLY_SCOPE |
protected Scope |
REQUEST_SCOPE |
Constructor and Description |
---|
Method(Server server,
java.lang.String name)
Create a new Method object for the method named @a name provided by @a
server.
|
Modifier and Type | Method and Description |
---|---|
void |
activate()
Activates all network resources that belong to a specific object.
|
void |
deactivate()
Deactivate all network resources that are owned by a specific object in
order to reactivate it.
|
Informer<?> |
getInformer()
Return the Informer object associated to this method.
|
Listener |
getListener()
Return the Listener object associated to this method.
|
java.lang.String |
getName()
Return the name of this method.
|
Server |
getServer()
Return the Server object to which this method is associated.
|
boolean |
isActive()
Tells wether this class is currently active or not.
|
java.lang.String |
toString() |
protected static final java.util.logging.Logger LOG
protected Factory factory
protected Informer<?> informer
protected Listener listener
protected final Scope REQUEST_SCOPE
protected final Scope REPLY_SCOPE
public Method(Server server, java.lang.String name)
server
- The remote or local server to which the method is associated.name
- The name of the method. Unique within a server.public Server getServer()
public java.lang.String getName()
public Informer<?> getInformer()
public Listener getListener()
public boolean isActive()
RSBObject
public void activate() throws InitializeException
RSBObject
activate
in interface RSBObject
InitializeException
public void deactivate()
RSBObject
deactivate
in interface RSBObject
public java.lang.String toString()
toString
in class java.lang.Object