Session.
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private Service | |
| protected final Session | session
The session this |
| Access | Constructor and Description |
|---|---|
| protected | CurrentService(Session
Session the instance belongs toCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized String | |
| public synchronized Service | |
| public boolean | |
| public void | set(Service
Service to setName of the service (the name of the name, boolean ServiceFactory that created it)whether to start the service start)Sets the current service and its name, and optionally starts the service. |
| public void |
| currentName | back to summary |
|---|---|
| private String currentName | |
| currentService | back to summary |
|---|---|
| private Service currentService | |
| session | back to summary |
|---|---|
| protected final Session session The session this | |
| CurrentService | back to summary |
|---|---|
| protected CurrentService(Session session) Creates a new | |
| getName | back to summary |
|---|---|
| public synchronized String getName() Retrieves the name of the current service.
| |
| getService | back to summary |
|---|---|
| public synchronized Service getService() Retrieves the current service.
| |
| process | back to summary |
|---|---|
| public boolean process(int cmd, Buffer buffer) throws Exception Processes a service request. | |
| set | back to summary |
|---|---|
| public void set(Service service, String name, boolean start) Sets the current service and its name, and optionally starts the service.
| |
| start | back to summary |
|---|---|
| public void start() Starts the current service. | |