org.shiftone.jrat.core
Class RuntimeContextImpl
java.lang.Object
org.shiftone.jrat.core.RuntimeContextImpl
- All Implemented Interfaces:
- RuntimeContext
class RuntimeContextImpl
- extends java.lang.Object
- implements RuntimeContext
Class RuntimeContextImpl
- Author:
- jeff@shiftone.org (Jeff Drost)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LOG
protected static final Logger LOG
RuntimeContextImpl
RuntimeContextImpl()
getSystemPropertiesAtStartup
public java.util.Properties getSystemPropertiesAtStartup()
- Specified by:
getSystemPropertiesAtStartup
in interface RuntimeContext
getHostAddress
public java.lang.String getHostAddress()
- Specified by:
getHostAddress
in interface RuntimeContext
getHostName
public java.lang.String getHostName()
- Specified by:
getHostName
in interface RuntimeContext
getStartTimeMs
public long getStartTimeMs()
- Specified by:
getStartTimeMs
in interface RuntimeContext
registerMBean
public void registerMBean(java.lang.Object mbean)
- Specified by:
registerMBean
in interface RuntimeContext
registerMBean
public void registerMBean(java.lang.Object mbean,
java.lang.String objectNameText)
- Specified by:
registerMBean
in interface RuntimeContext
register
public void register(Commandlet commandlet)
- Specified by:
register
in interface RuntimeContext
createPrintWriter
public java.io.PrintWriter createPrintWriter(java.lang.String fileName)
- Specified by:
createPrintWriter
in interface RuntimeContext
createOutputStream
public java.io.OutputStream createOutputStream(java.lang.String fileName)
- Specified by:
createOutputStream
in interface RuntimeContext
createWriter
public java.io.Writer createWriter(java.lang.String fileName)
- Specified by:
createWriter
in interface RuntimeContext
uniqNumber
public long uniqNumber()
- Specified by:
uniqNumber
in interface RuntimeContext
registerShutdownListener
public void registerShutdownListener(ShutdownListener listener)
- Specified by:
registerShutdownListener
in interface RuntimeContext
writeSerializable
public void writeSerializable(java.lang.String fileName,
java.io.Serializable serializable)
- Specified by:
writeSerializable
in interface RuntimeContext
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object