Package com.swiftmq.swiftlet
Class Swiftlet
java.lang.Object
com.swiftmq.swiftlet.Swiftlet
- Direct Known Subclasses:
AuthenticationSwiftlet
,DeploySwiftlet
,JNDISwiftlet
,LogSwiftlet
,MgmtSwiftlet
,NetworkSwiftlet
,QueueManager
,RoutingSwiftlet
,SchedulerSwiftlet
,StoreSwiftlet
,ThreadpoolSwiftlet
,TimerSwiftlet
,TopicManager
,TraceSwiftlet
,XAResourceManagerSwiftlet
Swiftlets are components of a SwiftMQ router and are under control of the SwiftletManager.
Implementing classes overwrite the
A Swiftlet is instantiated from the SwiftletManager. All Kernel Swiftlets are sharing one class loader, and every Extension Swiftlet has his own class loader.
Implementing classes overwrite the
startup
and shutdown
method.
A Swiftlet is instantiated from the SwiftletManager. All Kernel Swiftlets are sharing one class loader, and every Extension Swiftlet has his own class loader.
- Author:
- IIT GmbH, Bremen/Germany, Copyright (c) 2000-2002, All Rights Reserved
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the name of the Swiftletlong
Returns the Swiftlet startup timeint
getState()
Returns the current swiftlet stateboolean
Returns whether this Swiftlet provides Snapshotsprotected void
resume()
Resume this Swiftlet after it has been in standby mode.protected void
setStartupTime
(long startupTime) Set the startup time.protected abstract void
shutdown()
Stop this Swiftlet.protected void
standby
(Configuration config) Start this Swiftlet in standby mode.protected abstract void
startup
(Configuration config) Start this Swiftlet.
-
Field Details
-
STATE_ACTIVE
public static final int STATE_ACTIVE- See Also:
-
STATE_INACTIVE
public static final int STATE_INACTIVE- See Also:
-
STATE_STANDBY
public static final int STATE_STANDBY- See Also:
-
-
Constructor Details
-
Swiftlet
public Swiftlet()
-
-
Method Details
-
getName
Returns the name of the Swiftlet- Returns:
- swiftlet name
-
getState
public int getState()Returns the current swiftlet state- Returns:
- current state
-
getStartupTime
public long getStartupTime()Returns the Swiftlet startup time- Returns:
- startup time.
-
setStartupTime
protected void setStartupTime(long startupTime) Set the startup time. Called from the SwiftletManager.- Parameters:
startupTime
- startup time.
-
isSnapshotAvailable
public boolean isSnapshotAvailable()Returns whether this Swiftlet provides Snapshots- Returns:
- snapshot available.
-
startup
Start this Swiftlet. Called from the SwiftletManager during router start. The Swiftlet configuration is passed as parameter.- Parameters:
config
- Swiftlet configuration.- Throws:
SwiftletException
- on error during startup.
-
standby
Start this Swiftlet in standby mode. This method must be implemented from Kernel Swiftlets only.- Parameters:
config
- Swiftlet configuration.- Throws:
SwiftletException
- on error during startup.
-
resume
Resume this Swiftlet after it has been in standby mode. The Swiftlet changes to active. This method must be implemented from Kernel Swiftlets only.- Throws:
SwiftletException
- on error during startup.
-
shutdown
Stop this Swiftlet. Called from the SwiftletManager during router shutdown.- Throws:
SwiftletException
- on error during shutdown.
-