| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean | |
| pack-priv ProtocolKey | key
The idenity of this service, note that it may not be active yet. |
| pack-priv Vector | |
| pack-priv BaseMonitor | |
| pack-priv Hashtable | protocolTable
List of protocols. |
| pack-priv Locale | |
| pack-priv PersistentService | serviceType
The type of service this was created by. |
| pack-priv ModuleInstance | topModule
The top module instance |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | TopService(BaseMonitor monitor, ProtocolKey key, PersistentService serviceType, Locale serviceLocale)
|
| Modifier and Type | Method and Description |
|---|---|
| private boolean | addToProtocol(ProtocolKey key, ModuleInstance module)
Add a running module into the protocol hash table. |
| pack-priv Object | bootModule(boolean create, Object service, ProtocolKey key, Properties properties)
Boot a module, performs three steps. |
| pack-priv synchronized Object | findModule(ProtocolKey key, boolean findOnly, Properties properties)
Find an module in the protocol table that supports the required protocol name combination and can handle the properties. |
| private ModuleInstance | Returns: aModuleInstance object, or null if no match
was foundthe instance to look for instance)Find a |
| public ProtocolKey | |
| pack-priv Object | |
| pack-priv PersistentService | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv boolean | |
| private static void |
| inShutdown | back to summary |
|---|---|
| pack-priv boolean inShutdown | |
| key | back to summary |
|---|---|
| pack-priv ProtocolKey key The idenity of this service, note that it may not be active yet. | |
| moduleInstances | back to summary |
|---|---|
| pack-priv Vector<ModuleInstance> moduleInstances | |
| monitor | back to summary |
|---|---|
| pack-priv BaseMonitor monitor | |
| protocolTable | back to summary |
|---|---|
| pack-priv Hashtable<ProtocolKey, ModuleInstance> protocolTable List of protocols. | |
| serviceLocale | back to summary |
|---|---|
| pack-priv Locale serviceLocale | |
| serviceType | back to summary |
|---|---|
| pack-priv PersistentService serviceType The type of service this was created by. If null then this is a non-persistent service. | |
| topModule | back to summary |
|---|---|
| pack-priv ModuleInstance topModule The top module instance | |
| TopService | back to summary |
|---|---|
| pack-priv TopService(BaseMonitor monitor) | |
| TopService | back to summary |
|---|---|
| pack-priv TopService(BaseMonitor monitor, ProtocolKey key, PersistentService serviceType, Locale serviceLocale) | |
| addToProtocol | back to summary |
|---|---|
| private boolean addToProtocol(ProtocolKey key, ModuleInstance module) Add a running module into the protocol hash table. Return true if the module was added successfully, false if it couldn't be added. In the latter case the module should be shutdown if its reference count is 0. | |
| bootModule | back to summary |
|---|---|
| pack-priv Object bootModule(boolean create, Object service, ProtocolKey key, Properties properties) throws StandardException Boot a module, performs three steps.
| |
| findModule | back to summary |
|---|---|
| pack-priv synchronized Object findModule(ProtocolKey key, boolean findOnly, Properties properties) Find an module in the protocol table that supports the required protocol name combination and can handle the properties. Returns the instance of the module or null if one does not exist in the protocol table. | |
| findModuleInstance | back to summary |
|---|---|
| private ModuleInstance findModuleInstance(Object instance) Find a
| |
| getKey | back to summary |
|---|---|
| public ProtocolKey getKey() | |
| getService | back to summary |
|---|---|
| pack-priv Object getService() | |
| getServiceType | back to summary |
|---|---|
| pack-priv PersistentService getServiceType() | |
| inService | back to summary |
|---|---|
| pack-priv boolean inService(Object instance) | |
| isActiveService | back to summary |
|---|---|
| pack-priv boolean isActiveService() | |
| isActiveService | back to summary |
|---|---|
| pack-priv boolean isActiveService(ProtocolKey otherKey) | |
| isPotentialService | back to summary |
|---|---|
| pack-priv boolean isPotentialService(ProtocolKey otherKey) | |
| setTopModule | back to summary |
|---|---|
| pack-priv void setTopModule(Object instance) | |
| shutdown | back to summary |
|---|---|
| pack-priv boolean shutdown() If the service is already beign shutdown we return false. | |
| stop | back to summary |
|---|---|
| private static void stop(Object instance) | |