public final class Server extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY |
static String |
NAME_KEY |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetId, getNodePath, getStringPathpublic static final String KEY
public static final String NAME_KEY
public boolean isActive()
public String getServerName()
public Stripe getStripe()
public Context getContext()
getContext in interface Contextualpublic String getBuildId()
public ServerState getState()
public String getBindAddress()
public int getBindPort()
public String getHostName()
public Server setBindPort(int bindPort)
public int getGroupPort()
public Server setGroupPort(int groupPort)
public String getHostAddress()
public long getStartTime()
public Server setStartTime(long startTime)
public long getUpTimeSec()
public Server setUpTimeSec(long upTimeSec)
public Server computeUpTime()
public Server computeUpTime(java.time.Clock clock)
public Server setState(ServerState state)
public String getVersion()
public long getActivateTime()
public Server setActivateTime(long activateTime)
public void remove()
public boolean equals(Object o)
public int hashCode()
public final Map<String,Manageable> getManageables()
getManageables in interface ManageableContainer<B>public final int getManageableCount()
getManageableCount in interface ManageableContainer<B>public final java.util.stream.Stream<Manageable> manageableStream()
manageableStream in interface ManageableContainer<B>public final B addManageable(Manageable manageable)
addManageable in interface ManageableContainer<B>public final Optional<Manageable> getManageable(Context context)
getManageable in interface ManageableContainer<B>public final Optional<Manageable> getManageable(String id)
getManageable in interface ManageableContainer<B>public final Optional<Manageable> getManageable(String name, String type)
getManageable in interface ManageableContainer<B>public final boolean hasManageable(String name, String type)
hasManageable in interface ManageableContainer<B>public final Optional<Manageable> removeManageable(String id)
removeManageable in interface ManageableContainer<B>public final java.util.stream.Stream<Manageable> manageableStream(String type)
manageableStream in interface ManageableContainer<B>public final List<? extends Node> getNodePath()
getNodePath in interface Nodepublic final String getStringPath()
getStringPath in interface NodeCopyright © 2016. All Rights Reserved.