|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dse.base.DSENotifier | +--com.ibm.dse.base.Service | +--com.ibm.dse.services.jxfs.JXFSService
This class implements a Service that manages a generic JXFS Device Control.
Field Summary | |
static boolean |
AUTOOPEN_NO
|
static boolean |
AUTOOPEN_YES
|
protected java.util.Hashtable |
ids
The Hashtable for the synchronous pending operations identificationIDs |
protected Vector |
idSyncs
The vector for the synchronous pending operations identificationIDs |
protected int |
preOpenTimeout
The timeout for every function to wait for opening if there is automatic open |
protected static int |
syncTimeout
The timeout in miliseconds used by synchronous utilities |
protected boolean |
trace
|
protected static int |
waitMsgTime
The poll time in miliseconds used by synchronous utilities |
Fields inherited from class com.ibm.dse.base.Service |
externalizer |
Fields inherited from class com.ibm.dse.base.DSENotifier |
handlersList,
name |
Fields inherited from interface com.jxfs.events.OperationCompleteListener |
JXFS_COPYRIGHT,
JXFS_VERSION_CONTROL |
Fields inherited from interface com.jxfs.events.StatusListener |
JXFS_COPYRIGHT,
JXFS_VERSION_CONTROL |
Fields inherited from interface com.jxfs.events.IntermediateListener |
JXFS_COPYRIGHT,
JXFS_VERSION_CONTROL |
Fields inherited from interface com.jxfs.general.JxfsConst |
JXFS_ALL,
JXFS_ALM_OFFSET,
JXFS_CDR_OFFSET,
JXFS_CHK_OFFSET,
JXFS_COPYRIGHT,
JXFS_DEP_OFFSET,
JXFS_E_BUSY,
JXFS_E_CANCELLED,
JXFS_E_CLAIMED,
JXFS_E_CLOSED,
JXFS_E_DISABLED,
JXFS_E_EXISTS,
JXFS_E_FAILURE,
JXFS_E_FIRMWARE,
JXFS_E_ILLEGAL,
JXFS_E_IO,
JXFS_E_NOCONTROL,
JXFS_E_NOEXIST,
JXFS_E_NOHARDWARE,
JXFS_E_NOSERVICE,
JXFS_E_NOT_SUPPORTED,
JXFS_E_NOTCLAIMED,
JXFS_E_NOTREMOTE,
JXFS_E_OFFLINE,
JXFS_E_OPEN,
JXFS_E_PARAMETER_INVALID,
JXFS_E_REMOTE,
JXFS_E_SYSTEM,
JXFS_E_TIMEOUT,
JXFS_E_UNREGISTERED,
JXFS_FOREVER,
JXFS_LEVEL_ACTIVE,
JXFS_LEVEL_ALL,
JXFS_LEVEL_CONFIGURED,
JXFS_LEVEL_WORKSTATION,
JXFS_MSD_OFFSET,
JXFS_O_CLOSE,
JXFS_O_OPEN,
JXFS_O_UPDATEFIRMWARE,
JXFS_PIN_OFFSET,
JXFS_PTR_OFFSET,
JXFS_RC_SUCCESSFUL,
JXFS_RC_UNSUCCESSFUL,
JXFS_S_BIN_STATUS,
JXFS_S_CLAIMED,
JXFS_S_HARDWAREERROR,
JXFS_S_MEDIA_STATUS,
JXFS_S_POWERSAVEOFF,
JXFS_S_POWERSAVEON,
JXFS_S_RELEASED,
JXFS_S_REMOTEFAILURE,
JXFS_S_SERVICE_STARTED,
JXFS_S_SERVICE_STOPPED,
JXFS_S_SHUTDOWN,
JXFS_S_USERACTIONERROR,
JXFS_S_WORKING,
JXFS_SIU_OFFSET,
JXFS_TIO_OFFSET,
JXFS_VALID_CONTROLID,
JXFS_VERSION_CONTROL,
JXFSDEVICE_OFFSET,
JXFSDIRECTIO_OFFSET,
JXFSERR,
JXFSERREXT,
NO_MATCH,
NO_SOURCE,
NO_SUPPORT,
OK_NEWER,
OK_OLDER,
OK_OTHER |
Constructor Summary | |
JXFSService()
This constructor creates a JXFSService object. |
|
JXFSService(java.lang.String aName)
This constructor creates a JXFSService object. |
Method Summary | |
void |
cancel(int identificationID)
Makes a cancel call to the jxfs device control |
boolean |
claim(int timeout)
Makes a claim call to the jxfs device control |
int |
closeSync()
Makes a close call to the jxfs device control and waits for the operation complete event |
protected void |
finalize()
Makes final clean, closing the device |
com.jxfs.control.JxfsBaseControl |
getDeviceControl()
Returns the value of the myDeviceManager property. |
java.lang.String |
getDeviceName()
Returns the value of the deviceName property. |
java.lang.String |
getIniConfigFile()
Returns the value of the iniConfigFile property. |
com.jxfs.general.JxfsStatus |
getStatus()
Makes a getStatus call to the jxfs device control |
java.lang.Object |
initializeFrom(Tag aTag)
Initializes a JXFSService object with the aTag attributes. |
void |
intermediateOccurred(com.jxfs.events.IntermediateEvent anEvent)
Receives the intermediate events |
boolean |
isAutoOpen()
Sets the value of the autoOpen property. |
boolean |
isOpened()
Sets the value of the isOpened property. |
int |
openSync()
Makes an open call to the jxfs device control and waits for the operation complete event |
void |
operationCompleteOccurred(com.jxfs.events.OperationCompleteEvent anEvent)
Receives the operation complete events Manages the particular situation of automatic open |
protected void |
registerListener()
Registers the service as listener of the JXFS device control events It will capture the events and transform to WSCB events |
boolean |
release(int timeout)
Makes a release call to the jxfs device control |
void |
setAutoOpen(boolean newValue)
Sets the value of the autoOpen property. |
void |
setDeviceName(java.lang.String newValue)
Sets the value of the deviceName property. |
void |
setIniConfigFile(java.lang.String newValue)
Sets the value of the iniConfigfile property. |
void |
statusOccurred(com.jxfs.events.StatusEvent anEvent)
Receives the status events |
void |
terminate()
Housekeeping process for the service instance. |
java.lang.String |
toString()
Returns a visual representation of the service |
protected int |
waitForID(int anID)
Waits for the arriving of the operation complete event for that identification ID |
boolean |
waitOpen(long timeout)
Waits for the Device to be opened |
Methods inherited from class com.ibm.dse.base.Service |
externalizer,
getExternalizer,
getTagName,
readExternal,
readExternal,
readObject,
removeExternal,
setExternalizer,
toStrings,
toTags,
writeExternal,
writeExternal |
Methods inherited from class com.ibm.dse.base.DSENotifier |
addHandler,
getHandlersList,
getName,
removeHandler,
setName,
signalEvent,
signalEvent,
signalEvent |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final boolean AUTOOPEN_YES
public static final boolean AUTOOPEN_NO
protected boolean trace
protected int preOpenTimeout
protected java.util.Hashtable ids
protected Vector idSyncs
protected static final int waitMsgTime
protected static final int syncTimeout
Constructor Detail |
public JXFSService()
public JXFSService(java.lang.String aName) throws java.io.IOException
aName
- java.lang.String Object nameMethod Detail |
public void cancel(int identificationID) throws com.jxfs.events.JxfsException
identificationID
- int ID of the function to cancelpublic boolean claim(int timeout) throws com.jxfs.events.JxfsException
timeout
- int time to wait for the function to finishpublic int closeSync() throws com.jxfs.events.JxfsException
protected void finalize() throws com.jxfs.events.JxfsException
public com.jxfs.control.JxfsBaseControl getDeviceControl()
public java.lang.String getDeviceName()
public java.lang.String getIniConfigFile()
public com.jxfs.general.JxfsStatus getStatus() throws com.jxfs.events.JxfsException
public java.lang.Object initializeFrom(Tag aTag) throws java.io.IOException, DSEException
aTag
- com.ibm.dse.base.Tag Contains the name and attributes of the object to be created.public void intermediateOccurred(com.jxfs.events.IntermediateEvent anEvent)
anEvent
- com.jxfs.events.IntermediateEvent The IntermediateEvent event receivedpublic boolean isAutoOpen()
public boolean isOpened()
public int openSync() throws com.jxfs.events.JxfsException
public void operationCompleteOccurred(com.jxfs.events.OperationCompleteEvent anEvent)
anEvent
- com.jxfs.events.OperationCompleteEvent The OperationCompleteEvent event receivedprotected void registerListener()
public boolean release(int timeout) throws com.jxfs.events.JxfsException
timeout
- int time to wait for the function to finishpublic void setAutoOpen(boolean newValue)
newValue
- boolean The new value of the property.public void setDeviceName(java.lang.String newValue)
newValue
- String The new value of the property.public void setIniConfigFile(java.lang.String newValue)
newValue
- String The new value of the property.public void statusOccurred(com.jxfs.events.StatusEvent anEvent)
anEvent
- com.jxfs.events.StatusEvent The StatusEvent event receivedpublic void terminate() throws DSEException
public java.lang.String toString()
protected int waitForID(int anID)
anID
- int the identificationID of the event operation to waitpublic boolean waitOpen(long timeout)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |