|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.starla.smb.SMBAdminSession
SMB admin session class
The SMBAdminSession class implements the Remote Administration Protocol (RAP) as defined in the draft protocol specification.
The class can return the list of nodes on the network, get remote user information, get the list of shares on the remote server, list of printer queues on the remote server, and can manipulate individual print jobs.
An SMBAdminSession is created, as with all SMB sessions, via the SMBSessionFactory static class. The SMBSessionFactory.OpenAdminSession () method requires a PCShare object that provides the remote server node name, the share name will be ignored as an admin session is always made to the IPC$ named pipe. User name and/or a password may be required depending upon the requests being made, and whether the 'GUEST' account is available on the remote server.
Method Summary | |
void |
CloseSession()
Close the session to the remote server |
void |
ContinuePrintJob(SMBPrintJob job)
Continue, unpause, the specified print job |
void |
ContinuePrintQueue(java.lang.String qname)
Start, unpause, the specified remote printer queue. |
void |
DeletePrintJob(SMBPrintJob job)
Delete the specified print job |
SMBPrintQueueInfo |
getPrinterInfo(java.lang.String printerName)
Return printer queue information for the specified printer queue. |
SMBPrinterList |
getPrinterList()
Return the list of printer queues available on this server. |
SMBPrintJobList |
getPrintJobs(java.lang.String qnam)
Return the list of print jobs in the specified printer queue. |
SMBServerInfo |
getServerInfo()
Return the server information for the server we are connected to |
SMBServerList |
getServerList(int flags)
Return the list of available servers on the network |
SMBShareInfo2 |
getShareInfo(java.lang.String shr)
Return the full share information for the specified share |
SMBShareList |
getShareList()
Return the list of available shares on the remote server |
SMBUserInfo |
getUserInfo(java.lang.String usr)
Return the user information for the specified user |
java.util.Vector |
getUserList()
Return the list of users on the remote server. |
void |
PausePrintJob(SMBPrintJob job)
Pause the specified print job |
void |
PausePrintQueue(java.lang.String qname)
Pause the specified print queue. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public void CloseSession() throws java.io.IOException
public final void ContinuePrintJob(SMBPrintJob job) throws java.io.IOException, SMBException
job
- SMBPrintJob containing the details of the print job to continuepublic final void ContinuePrintQueue(java.lang.String qname) throws java.io.IOException, SMBException
qname
- Remote print queue to continuepublic final void DeletePrintJob(SMBPrintJob job) throws java.io.IOException, SMBException
job
- SMBPrintJob containing the details of the print job to pausepublic final SMBPrintQueueInfo getPrinterInfo(java.lang.String printerName) throws java.io.IOException, SMBException
printerName
- Name of the remote printer to return information for.public final SMBPrinterList getPrinterList() throws java.io.IOException, SMBException
public final SMBPrintJobList getPrintJobs(java.lang.String qnam) throws java.io.IOException, SMBException
qnam
- Name of the queue to return jobs forpublic final SMBServerInfo getServerInfo() throws java.io.IOException, SMBException
public final SMBServerList getServerList(int flags) throws java.io.IOException, SMBException
flags
- Server enumerate flags.public final SMBShareInfo2 getShareInfo(java.lang.String shr) throws java.io.IOException, SMBException
shr
- Remote share name to return information for.public final SMBShareList getShareList() throws java.io.IOException, SMBException
public final SMBUserInfo getUserInfo(java.lang.String usr) throws java.io.IOException, SMBException
usr
- User name of the user to return information for.public final java.util.Vector getUserList() throws java.io.IOException, SMBException
public final void PausePrintJob(SMBPrintJob job) throws java.io.IOException, SMBException
job
- SMBPrintJob containing the details of the print job to pausepublic final void PausePrintQueue(java.lang.String qname) throws java.io.IOException, SMBException
qname
- Remote print queue to be paused
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |